package com.example.childrendapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class Main extends Activity implements OnClickListener {
	/*
	 * private TextView name; private TextView pass;
	 */
	private Button mStart;
	private TextView txt1, txt2, txt3, txt4, txt5;
	private Button a1, a2, a3, a4;
	private static final int TEST = 1;
	private static final String TAG = "Main";
	private String test = "3+?=7";
	private char[] result;

	private ListView mListView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.main);
		txt1 = (TextView) findViewById(R.id.txt1);
		txt2 = (TextView) findViewById(R.id.txt2);
		txt3 = (TextView) findViewById(R.id.txt3);
		txt4 = (TextView) findViewById(R.id.txt4);
		txt5 = (TextView) findViewById(R.id.txt5);
		a1 = (Button) findViewById(R.id.a1);
		a2 = (Button) findViewById(R.id.a2);
		a3 = (Button) findViewById(R.id.a3);
		a4 = (Button) findViewById(R.id.a4);
		// name=(TextView) findViewById(R.id.txt1);
		// pass=(TextView) findViewById(R.id.txt2);
		mStart = (Button) findViewById(R.id.start);
		result = test.toCharArray();
		txt1.setText("" + result[0]);
		txt2.setText("" + result[1]);
		txt3.setText("" + result[2]);
		txt4.setText("" + result[3]);
		txt5.setText("" + result[4]);
		/*
		 * String result=this.getIntent().getExtras().getString("VALUE1");
		 * String result1=this.getIntent().getExtras().getString("VALUE2");
		 */
		// name.setText(result);
		// pass.setText(result1);
		// mShare.setOnClickListener(this);
		mStart.setOnClickListener(this);
		/*
		 * a1.setOnClickListener(this); a2.setOnClickListener(this);
		 * a3.setOnClickListener(this); a4.setOnClickListener(this);
		 */

	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stu
		super.onResume();

	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}

	@Override
	public void onClick(View v) {
		Intent i = new Intent(this, StartGame.class);
		this.startActivity(i);
	}
}
